package com.aidex.system.service;

import com.aidex.common.core.service.BaseService;
import com.aidex.system.domain.CargoDetail;
import com.aidex.system.domain.vo.CargoDetailApply;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 货品清单Service接口
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-10-06
 */
public interface CargoDetailService extends BaseService<CargoDetail>
{

    /**
     * 批量删除货品清单
     * @param ids 需要删除的货品清单ID集合
     * @return 结果
     */
    int deleteCargoDetailByIds(String[] ids);

    /**
     * 通过货品名获取清单内容
     * @param name
     * @return
     */
    CargoDetail getByName(String name);

    /**
     * 审核货品清单
     *
     * @param apply
     */
    Boolean apply(CargoDetailApply apply);

}
